import {
  GraphQLList,
  GraphQLObjectType,
  GraphQLSchema,
  GraphQLString,
  GraphQLInt,
  GraphQLFloat,
  GraphQLEnumType,
  GraphQLNonNull,
  GraphQLID
} from 'graphql';
import StrategyType from './StrategyType'

export default new GraphQLObjectType({
  name: 'User',
  description: '用户信息',
  fields: {
    uid: {
      type: new GraphQLNonNull(GraphQLID),
      description: '用户uid'
    },
    strategies: {
      type: new GraphQLList(StrategyType),
      description: '用户的量化策略'
    },
    favors: {
      type: new GraphQLList(StrategyType),
      description: '用户收藏的股票列表'
    }
  }
})
